<!--
 * @Author: lwHao
 * @Date: 2020-11-06 17:08:58
 * @LastEditors: lwHao
 * @LastEditTime: 2020-11-06 17:46:51
-->
<template>
  <Layout>
    <div style="min-height: 600px">
      <el-card shadow="never" style="min-height: 400px" v-if="$page.blog">
        <div slot="header">
          <span>{{$page.blog.title}}</span>
        </div>
        <div style="font-size: 0.9rem;line-height: 1.5;color: #606c71;">
          发布 2020-11-03 22:22:20
          <br />
          更新 2020-11-06 23:23:23
        </div>
        <div style="font-size: 1.1rem;line-height: 1.5;color: #303133;border-bottom: 1px solid #E4E7ED;padding: 5px 0px 5px 0px">
          <pre style="font-family: '微软雅黑'">balbala</pre>
        </div>
        <div v-html="$page.blog.body" class="markdown-body" style="padding-top: 20px"></div>
      </el-card>
      
    </div>
  </Layout>
</template>

<page-query>
query ($id: ID!) {
  blog: post (id: $id) {
    id
    title
    body
  }
}
</page-query>

<script>
export default {
  name: 'BlogPage',
  metaInfo: {
    title: '博客列表'
  },
}
</script>

<style>

</style>